package com.niuwa.p2p.service.impl.dictionary;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.niuwa.p2p.dao.dictionary.DictionaryDao;
import com.niuwa.p2p.entity.Dictionary;
import com.niuwa.p2p.service.dictionary.DictionaryService;

@Service
public class DictionaryServiceImpl implements DictionaryService {

	@Autowired
	private DictionaryDao dictDao;
	
	@Override
	public List<Dictionary> getAllDictionary() throws Exception {
		return dictDao.getAllDictionary();
	}
	
	@Override
	public List<Dictionary> getDictListByDictType(String dictType)throws Exception {
		return dictDao.getDictByDictType(dictType);
	}
	
	

}
